#ifndef THINK_THINK_MODEL_PIVOT_H
#define THINK_THINK_MODEL_PIVOT_H

static char* think_model_pivot =
	"\n"
	"// +----------------------------------------------------------------------\n"
	"// | ThinkPHP [ WE CAN DO IT JUST THINK ]\n"
	"// +----------------------------------------------------------------------\n"
	"// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.\n"
	"// +----------------------------------------------------------------------\n"
	"// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )\n"
	"// +----------------------------------------------------------------------\n"
	"// | Author: liu21st <liu21st@gmail.com>\n"
	"// +----------------------------------------------------------------------\n"
	"\n"
	"namespace think\\model;\n"
	"\n"
	"use think\\Model;\n"
	"\n"
	"class Pivot extends Model\n"
	"{\n"
	"\n"
	"    /** @var Model */\n"
	"    public $parent;\n"
	"\n"
	"    protected $autoWriteTimestamp = false;\n"
	"\n"
	"    /**\n"
	"     * 架构函数\n"
	"     * @access public\n"
	"     * @param array|object  $data 数据\n"
	"     * @param Model         $parent 上级模型\n"
	"     * @param string        $table 中间数据表名\n"
	"     */\n"
	"    public function __construct($data = [], Model $parent = null, $table = \'\')\n"
	"    {\n"
	"        $this->parent = $parent;\n"
	"\n"
	"        if (is_null($this->name)) {\n"
	"            $this->name = $table;\n"
	"        }\n"
	"\n"
	"        parent::__construct($data);\n"
	"    }\n"
	"\n"
	"}\n"
	"\n"
;
#endif